/*
 * @Author: shiguo
 * @Date: 2022-05-27 18:34:25
 * @LastEditors: shiguo
 * @LastEditTime: 2022-09-19 11:55:24
 * @FilePath: /@aks-dev/umeng/android/src/main/java/com/umeng/BadgeModule.java
 */
package com.umeng;


import android.content.Context;

import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;

public class BadgeModule extends ReactContextBaseJavaModule {

    private Context context;

    public BadgeModule(ReactApplicationContext reactContext) {
        super(reactContext);
        this.context = reactContext;
    }

    @Override
    public String getName() {
        return "BadgeModule";
    }

    @ReactMethod
    public void setCount(int count) {
        BadgeUtils.setCount(count, this.context);
    }

}
